<!DOCTYPE html>
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
	<meta charset="utf-8">
	<title>文档标题</title>
	<meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1" />
	<meta name="keywords" content="">
	<meta name="description" content="">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<style>
    v\:* {
        behavior: url(#default#VML);
        display: block;
    }
	</style>
</head>
<body>
<input type="button" name="" value="创建" id="btn1">
<script>
window.onload = function() {
    var oBtn = document.getElementById('btn1');

    oBtn.onclick = function() {
        var oShape = document.createElement('v:shape');
        oShape.style.width="1000px";
        oShape.style.height="1000px";

        oShape.path = 'M 100 100 L 200 300 250 100 X'
        oShape.strokecolor="red";
        document.body.appendChild(oShape);
    }
}
</script>
</body>
</html>